Updated for 2.6.1 by: The Tech Support Team, Pictorius Incorporated
Note: Enclosed is a version of the DragItem class which will work on 68000 based machines. This does *not* work in Color - it *only* works in B&W. Some more work needs to be done to create a class that tests for color on the current system and does the appropriate thing.
Contents: Drag Item B&W.pgs
Drag Item B&W Read Me
CopyPix.XDEF
CopyPix XDEF • Read me
Needs Prograph Extensions:
The default configuration of your 'Prograph Extensions' folder. Plus the CopyPix.XDEF should be added to your Prograph Extensions folder and all externals rebuilt.
Needs Libraries to Compile:
SCLibrary 2.6
Library 2.6
The following methods in class Drag Item were modified:
NewPixMap
DisposePixMap
drag
The changes that were made are summarized as follows:
All calls to OpenCPort changed to OpenPort
All calls to CloseCPort changed to ClosePort
All calls to CopyPix changed to CopyBits
Mac Get of portPixBits changed to Mac Get Address of portBits
For more background on why these changes needed to be made, read up in InsideMacintosh or Think Reference on the structural differences between CGrafPorts and GrafPorts, portPixBits and portBits.
The call to GetMaxDevice in DragItem/drag/before/allocate/depth was removed. We just assume that the depth of the screen is 1.